package java_12_20;

public class Demo5 {
    public static void main(String[] args) throws InterruptedException {
        Thread t1=new Thread(){
            public void run(){
                for(int i=0;i<100;i++){

                }
                System.out.println("线程执行结束");
            }
        };
        System.out.println("start 方法之前："+t1.getState());
        t1.start();
        System.out.println("start 方法之后："+t1.getState());
        Thread.sleep(1000);
    }
}
